<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth3{
   width:132px;
}
.inputradio{vertical-align:middle;}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="attentInfo1"cellspacing="1">	
							<tr><td colspan="6" class="t_bar">&nbsp;<span class="color_red" style="display:none">*</span>项目合作单位1</td></tr>
							<tr>
								<td  align="right" width="120px">单位名称：</td>
								<td colspan="3">
								<input type="hidden" name="organizations/organization[1]@sequence_no" value="2" >
								<input type="text" label="项目合作单位1中的单位名称" class="input_css maxlength:50  needchk"  onchange="updateClassDyn()" maxlength="50"  
										name="organizations/organization[1]/cname" id="orgName1" style="width:92%;"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='2']/cname"/>">
								</td>
						        <td align="right" >组织机构代码：</td>
								<td align="left" >
								<input type="text" label="项目合作单位1中的组织机构代码"  class="input_css maxlength:20 needchk" maxlength="20"
									name="organizations/organization[1]/org_no"  onchange="updateClassDyn()"
									value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='2']/org_no"/>">
								</td>
							</tr>
							
							<tr>
								<td align="right">负责人：</td>
								<td  width="100px">
								<input type="text" label="项目合作单位1中的负责人" class="input_css maxlength:50 needchk" maxlength="20"   
										name="organizations/organization[1]/contact_name"  onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='2']/contact_name"/>">
								</td>
								<td align="right">手机：</td>
								<td style="width:150px" >
								<input  label="项目合作单位1中的手机" type="text" maxlength="11" class="telInput needchk needchkmoblie"
										name="organizations/organization[1]/contact_tel" onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='2']/contact_tel"/>">
								</td>
								<td align="right" >联系电话：</td>
								<td align="left" >
								<input type="text" label="项目合作单位1中的联系电话" class="input_css needchk" maxlength="30"   size="21"
										   name="organizations/organization[1]/contact_mobile"  onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='2']/contact_mobile"/>">
								</td>
							</tr>
		</table>
		<table class="t_css" width="100%" border="0" cellpadding="0" id="attentInfo2"cellspacing="1">
							<tr><td colspan="6" class='t_bar'>&nbsp;<span class="color_red" style="display:none">*</span>项目合作单位2</td></tr>
							<tr>
								<td  align="right" width="120px">单位名称：</td>
								<td colspan="3">
								<input type="hidden" name="organizations/organization[2]@sequence_no" value="3" >
								<input type="text"  label="项目合作单位2中的单位名称"  id="orgName2"   class="input_css maxlength:50 needchk" maxlength="50"  
										name="organizations/organization[2]/cname"  style="width:92%;"  onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='3']/cname"/>">
								</td>
					       	<td align="right" >组织机构代码：</td>
								<td align="left" >
								<input type="text" label="项目合作单位2中的组织机构代码"  class="input_css maxlength:20  needchk"  maxlength="20"
										 name="organizations/organization[2]/org_no"   onchange="updateClassDyn()"
										 value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='3']/org_no"/>">
								</td>
							</tr>						
							
							<tr>
								<td align="right">负责人：</td>
								<td  width="100px">
								<input type="text" label="项目合作单位2中的负责人"  class="input_css maxlength:50 needchk" maxlength="20"   
										name="organizations/organization[2]/contact_name"  onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='3']/contact_name"/>">
								</td>
								<td align="right">手机：</td>
								<td style="width:150px" >
								<input  label="项目合作单位2中的手机"  type="text" maxlength="11"  onchange="updateClassDyn()"
										name="organizations/organization[2]/contact_tel" class="telInput maxlength:50 needchk needchkmoblie"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='3']/contact_tel"/>">
								</td>
								<td align="right" >联系电话：</td>
								<td align="left" >
								<input type="text"  label="项目合作单位2中的联系电话" class="input_css  needchk" maxlength="30"  size="21"
										 
										name="organizations/organization[2]/contact_mobile"  onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='3']/contact_mobile"/>">
								</td>
							</tr>
		</table>
		
		<table class="t_css" width="100%" border="0" cellpadding="0" id="attentInfo3" cellspacing="1">
							<tr><td colspan="6" class='t_bar'>&nbsp;<span class="color_red" style="display:none">*</span>项目合作单位3</td></tr>
							<tr>
								<td  align="right" width="120px">单位名称：</td>
								<td colspan="3">
								<input type="hidden" name="organizations/organization[3]@sequence_no" value="4" >
								<input type="text"  label="项目合作单位3中的单位名称"  onchange="updateClassDyn()"  class="input_css maxlength:50 needchk" maxlength="50"  
										name="organizations/organization[3]/cname" id="orgName3" style="width:92%;" 
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='4']/cname"/>">
								</td>
								<td align="right" >组织机构代码：</td>
								<td align="left"  >
								<input type="text" label="项目合作单位3中的组织机构代码"  class="input_css maxlength:20  needchk"  maxlength="20"
										 name="organizations/organization[3]/org_no"   onchange="updateClassDyn()"
										 value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='4']/org_no"/>">
								</td>
							</tr>						
							
							<tr>
								<td align="right">负责人：</td>
								<td  width="100px">
								<input type="text" label="项目合作单位3中的负责人"  class="input_css maxlength:50 needchk" maxlength="20"   
										name="organizations/organization[3]/contact_name" onchange="updateClassDyn()"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='4']/contact_name"/>">
								</td>
								<td align="right">手机：</td>
								<td style="width:150px" >
								<input  label="项目合作单位3中的手机"  type="text" maxlength="11" onchange="updateClassDyn()"
										name="organizations/organization[3]/contact_tel" class="telInput maxlength:50 needchk needchkmoblie"
										value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='4']/contact_tel"/>">
								</td>
								<td align="right" >联系电话：</td>
								<td align="left" >
								<input type="text"  label="项目合作单位3中的联系电话" class="input_css  needchk" maxlength="30"   size="21"
								name="organizations/organization[3]/contact_mobile"  onchange="updateClassDyn()"
								value="<x:out select="$xmlData/data/organizations/organization[@sequence_no='4']/contact_mobile"/>">
								</td>
							</tr>
		</table>
		
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="attentInfo4">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;<span class="color_red">*</span>项目基本信息</td>
	</tr>
	<tr>
		<td nowrap width="111" align="right">合作形式：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/coor_type" label="项目基本信息中的合作形式" type="text" onfocus="InitInput.setMaxLength(this,50)"
			class="input_css required" style="width: 718px;" 
			value="<x:out select="$xmlData/data/proposal/coor_type" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" valign="middle">项目所处阶段：</td>
		<td nowrap colspan="5" valign="middle"><label> <input
				type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="策划构思阶段"
				value="01" /><span style="vertical-align: middle;">策划构思阶段</span>
		</label> <label> <input type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="初创阶段"
				value="02" /><span style="vertical-align: middle;">初创阶段</span>
		</label> <label> <input type="radio" class="do " id="advant_03"
				style="vertical-align: middle;" name="advant" label="稳定成长阶段"
				value="03" /><span style="vertical-align: middle;">稳定成长阶段</span>
		</label> <label> <input type="radio" class="do " id="advant_04"
				style="vertical-align: middle;" name="advant" label="成熟阶段"
				value="04" /><span style="vertical-align: middle;">成熟阶段</span>
		</label> <input type="hidden" name="proposal/advant_value"
			id="advant_value" class="required"
			value="<x:out select="$xmlData/data/proposal/advant_value" />"
			label="项目基本信息中的项目所处阶段" /> <input type="hidden"
			name="proposal/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/proposal/advant_name" />"
			label="项目基本信息中的项目所处阶段" /></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	    cellspacing="1" id="attentInfo5">
      <tr class="li_1">
          <td align="left">项目主要内容和预期目标</strong>（限200字）</td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="7" cols="150"  class="input_textarea required  maxlength:200"   name='proposal/goal/summary1'  label="项目主要内容和预期目标"><x:out select="$xmlData/data/proposal/goal/summary1"/></textarea>
		  <input type="hidden" name="proposal/goal/summary1_hidden" value=""/>
		  </td>
      </tr>
      <tr class="li_1">
          <td align="left"><strong>项目现有基础及开展以来已实现指标</strong>（限500字）</td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="10" cols="150" name='proposal/goal/summary2' class="input_textarea required  maxlength:500"   label="项目现有基础及开展以来已实现指标"><x:out select="$xmlData/data/proposal/goal/summary2"/></textarea>
	      <input type="hidden" name="proposal/goal/summary2_hidden" value=""/>
	      </td>
      </tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="attentInfo6">
    <tr>
		<td class="t_bar">&nbsp;<span class="color_red">*</span>项目现有知识产权状况</td>
	</tr>
	<tr>
		<td>
			<label><input type="radio" name="attribution"  class="do inputradio" value="01" label="已申请著作权/专利" onclick="attributionControl(this);">已申请著作权/专利</label>
			<label><input type="radio" name="attribution"  class="do inputradio" value="02" label="已获得著作权/专利" onclick="attributionControl(this);">已获得著作权/专利</label>
			<label><input type="radio" name="attribution"  class="do inputradio" value="03" label="未申请著作权/专利" onclick="attributionControl(this);">未申请著作权/专利</label>
		    <input type="hidden" id='attribution_value' name="audit/attribution_value" class="required"  label="项目现有知识产权状况"  value="<x:out select="$xmlData/data/audit/attribution_value" />">	
			<input type="hidden" name="audit/attribution_name" value="<x:out select="$xmlData/data/audit/attribution_name" />">	
		    <br>
		    <span id='attribution01' style='display:none'>申请号：<input name='proposal/attribution01' id='attribution_value01' style="width: 46%" class='' maxlength=50 label='申请号' value='<x:out select="$xmlData/data/proposal/attribution01" />'></span>
		    <span id='attribution02' style='display:none'>注册号：<input name='proposal/attribution02' id='attribution_value02' style="width: 46%" class='' maxlength=50 label='注册号' value='<x:out select="$xmlData/data/proposal/attribution02" />'></span>
		</td>
		
	</tr>
</table>



<script type="text/javascript">
$(function(){
	$("#attentInfo1 tr:even").addClass("li_1");
    $("#attentInfo1 tr:odd").addClass("li_2");
    $("#attentInfo2 tr:even").addClass("li_1");
    $("#attentInfo2 tr:odd").addClass("li_2");
    $("#attentInfo3 tr:even").addClass("li_1");
    $("#attentInfo3 tr:odd").addClass("li_2");
    $("#attentInfo4 tr:even").addClass("li_1");
    $("#attentInfo4 tr:odd").addClass("li_2");
    $("#attentInfo5 tr:even").addClass("li_1");
    $("#attentInfo5 tr:odd").addClass("li_2");
    $("#attentInfo6 tr:even").addClass("li_1");
    $("#attentInfo6 tr:odd").addClass("li_2");
    changeClassDyn();
   // updateClassDyn();
   updateClassDyn();
    attributionControl(document.getElementById("attribution_value"));
});


function attributionControl(obj){
	if(obj.value=='01'){
		$('#attribution01').show();
		$('#attribution_value01').addClass('required');
		$('#attribution02').hide();
		$('#attribution_value02').val('');
		$('#attribution_value02').removeClass('required');
	}else if(obj.value=='02'){
		$('#attribution02').show();
		$('#attribution_value02').addClass('required');
		$('#attribution01').hide();
		$('#attribution_value01').val('');
		$('#attribution_value01').removeClass('required');
	}else if(obj.value=='03'){
		$('#attribution01').hide();
		$('#attribution_value01').val('');
		$('#attribution_value01').removeClass('required');
		$('#attribution02').hide();
		$('#attribution_value02').val('');
		$('#attribution_value02').removeClass('required');
	}else{
		$('#attribution01').hide();
		$('#attribution02').hide();
	}
	
}

function updateClassDyn(){
	$(".needchk").each(function(){
		$(this).removeClass("required");
		$(this).removeClass("mobile");
	});
	$(".needchk").each(function(){
		if($(this).val()!=''){
			$(this).parents("table").find(".needchk").each(function(){
				$(this).addClass("required");
			});
			$(this).parents("table").find(".needchkmoblie").each(function(){
				$(this).addClass("mobile");
			});
		}
		
	});
}
</script>